//
//  MCShareBaseQRCodeView.swift
//  StoreManage
//
//  Created by MC on 2018/2/1.
//  Copyright © 2018年 MC. All rights reserved.
//

import UIKit

class MCShareBaseQRCodeView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.addSubview(qrCodeImageView)
        qrCodeImageView.snp.remakeConstraints { (make) ->Void in
            make.edges.equalTo(self)
        }
    }
    
    
    func MCFillInInformation(urlStr : String, iconImage : UIImage?) {
       qrCodeImageView.image = MCImage_createQRForString(qrString: urlStr, iconImage: iconImage)
    }
    
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    private lazy var qrCodeImageView: UIImageView = {
        let imageView = UIImageView()
        return imageView
    }()
}
